#include "send_blank_impl.h"
#include <iostream>
using namespace std;

void network::send_blank_impl::create_open_object(const string &name)
{
	_buffer = name + " ";
}

void network::send_blank_impl::create_close_object(const string &name)
{
	_buffer += '\n';
}

void network::send_blank_impl::create_single_object(const string &name)
{
	_buffer = name + '\n';
}

void network::send_blank_impl::create_attrib(const string &name, 
						     const string &val) 
{
	_buffer += name + " " + val + " ";
}

const string& network::send_blank_impl::get_header() const
{
	return _buffer;
}

const string& network::send_blank_impl::get_footer() const
{
	return _tmp;
}

boost::shared_ptr<network::send_impl> network::send_blank_impl::clone() const
{
	return boost::shared_ptr<network::send_impl>(new send_blank_impl());
}

